<!doctype html>
<html >
  <head>
    <meta http-equiv="content-type"  content="text/html; charset=UTF-8"/>
    <meta http-equiv="Pragma"        content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>

    <script src="./../jslib/angular-1.5.6/angular.js"></script>
    <script src="./../jslib/ui-bootstrap-tpls-1.3.3.min.js"></script>
	<script src="./../jslib/angular-1.5.6/angular-animate.js"></script>
	<link rel="stylesheet" href="./../css/bootstrap/3.3.4/bootstrap.min.css"/>
    <script src="openModal.js"></script>
  </head>
  <body ng-app="ui.bootstrap.demo">

<div ng-controller="ModalDemoCtrl">
    <script type="text/ng-template" id="myModalContent.html">
        <div class="modal-header">
            <h3 class="modal-title">I'm a modal!</h3>
        </div>
        <div class="modal-body">
            <ul>
                <li ng-repeat="item in items">
                    <a ng-click="selected.item = item">{{ item }}</a>
                </li>
            </ul>
            Selected: <b>{{ selected.item }}</b>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary" ng-click="ok()">OK</button>
            <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
        </div>
    </script>

    <button class="btn btn-default" ng-click="open()">Open me!</button>
    <button class="btn btn-default" ng-click="open('lg')">Large modal</button>
    <button class="btn btn-default" ng-click="open('sm')">Small modal</button>
    <div ng-show="selected">Selection from a modal: {{ selected }}</div>
</div>
  </body>
</html>